package com.itqf.mapper;

import com.itqf.bean.DtsAdmin;
import com.itqf.dto.AdminDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtsAdminMapper {

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    DtsAdmin queryAdmin(@Param("username") String username);


    List<DtsAdmin> queryAdminByPage(AdminDto adminDto);

    int deleteAdminById(@Param("id") Integer id);

    int updateAdminById(DtsAdmin dtsAdmin);

    int save(DtsAdmin dtsAdmin);
}